package org.example;

public class Base {



}

/**
 * 二叉树
 */
class TreeNode{
    int val;
    TreeNode left;
    TreeNode right;

    // 构造函数
    public TreeNode(int val){
        this.val = val;
        this.left = null;
        this.right = null;
    }
}

/**
 * 单链表
 */
class ListNode{
    // 节点存储的值
    int val;
    // 指向下一个节点的指针
    ListNode next;

    public ListNode(int val){
        this.val = val;
        this.next = null;
    }
}
